Top Description Constructors Methods
org.glassfish.grizzly.websockets

public Class OptimizedBroadcaster

extends Object
implements Broadcaster
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.websockets.Broadcaster

The default Broadcaster optimized to send the same text to a set of clients.

Note

works with DefaultWebSockets and inherited classes.

Author
Alexey Stashok

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
broadcast(final Iterable<? extends WebSocket> recipients, final String text)

Implements org.glassfish.grizzly.websockets.Broadcaster.broadcast.

Broadcasts the provided text content to the specified recipients.

public void
broadcast(final Iterable<? extends WebSocket> recipients, final byte[] binary)

Implements org.glassfish.grizzly.websockets.Broadcaster.broadcast.

Broadcasts the provided binary content to the specified recipients.

public void
broadcastFragment(Iterable<? extends WebSocket> recipients, String text, boolean last)

Implements org.glassfish.grizzly.websockets.Broadcaster.broadcastFragment.

Broadcasts the provided fragmented text content to the specified recipients.

public void
broadcastFragment(Iterable<? extends WebSocket> recipients, byte[] binary, boolean last)

Implements org.glassfish.grizzly.websockets.Broadcaster.broadcastFragment.

Broadcasts the provided fragmented binary content to the specified recipients.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OptimizedBroadcasterback to summary
public OptimizedBroadcaster()

Method Detail

broadcastback to summary
public void broadcast(final Iterable<? extends WebSocket> recipients, final String text)

Implements org.glassfish.grizzly.websockets.Broadcaster.broadcast.

Doc from org.glassfish.grizzly.websockets.Broadcaster.broadcast.

Broadcasts the provided text content to the specified recipients.

Annotations
@Override
broadcastback to summary
public void broadcast(final Iterable<? extends WebSocket> recipients, final byte[] binary)

Implements org.glassfish.grizzly.websockets.Broadcaster.broadcast.

Doc from org.glassfish.grizzly.websockets.Broadcaster.broadcast.

Broadcasts the provided binary content to the specified recipients.

Annotations
@Override
broadcastFragmentback to summary
public void broadcastFragment(Iterable<? extends WebSocket> recipients, String text, boolean last)

Implements org.glassfish.grizzly.websockets.Broadcaster.broadcastFragment.

Doc from org.glassfish.grizzly.websockets.Broadcaster.broadcastFragment.

Broadcasts the provided fragmented text content to the specified recipients.

Annotations
@Override
broadcastFragmentback to summary
public void broadcastFragment(Iterable<? extends WebSocket> recipients, byte[] binary, boolean last)

Implements org.glassfish.grizzly.websockets.Broadcaster.broadcastFragment.

Doc from org.glassfish.grizzly.websockets.Broadcaster.broadcastFragment.

Broadcasts the provided fragmented binary content to the specified recipients.

Annotations
@Override