Top Description Constructors Methods
org.glassfish.grizzly.websockets

public Class DummyBroadcaster

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

The default Broadcaster, which iterates over set of clients and sends the same text of binary message separately to each client. So the text/binary -> websocket-frame transformation is being done for each client separately.
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(final Iterable<? extends WebSocket> recipients, final String text, final boolean last)

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

Broadcasts the provided fragmented text content to the specified recipients.

public void
broadcastFragment(final Iterable<? extends WebSocket> recipients, final byte[] binary, final 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

DummyBroadcasterback to summary
public DummyBroadcaster()

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(final Iterable<? extends WebSocket> recipients, final String text, final 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(final Iterable<? extends WebSocket> recipients, final byte[] binary, final 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