public class Deliver extends Object implements Serializable
Broadcaster
's internal token that is created before the message gets Broadcaster. A Deliver gives information about
what will be delivered, to whow, etc.Modifier and Type | Class and Description |
---|---|
static class |
Deliver.TYPE |
Modifier and Type | Field and Description |
---|---|
protected boolean |
async |
protected CacheMessage |
cache |
protected BroadcasterFuture<?> |
future |
protected Object |
message |
protected Object |
originalMessage |
protected AtmosphereResource |
resource |
protected Set<AtmosphereResource> |
resources |
protected Deliver.TYPE |
type |
protected boolean |
writeLocally |
Constructor and Description |
---|
Deliver(AtmosphereResource r,
Deliver e) |
Deliver(AtmosphereResource r,
Deliver e,
CacheMessage cacheMessage) |
Deliver(Deliver.TYPE type,
Object originalMessage,
Object message,
AtmosphereResource r,
BroadcasterFuture<?> future,
CacheMessage cache,
boolean writeLocally,
Set<AtmosphereResource> resources,
boolean async) |
Deliver(Object message,
AtmosphereResource r,
BroadcasterFuture<?> future,
Object originalMessage) |
Deliver(Object message,
BroadcasterFuture<?> future,
boolean writeLocally) |
Deliver(Object message,
BroadcasterFuture<?> future,
Object originalMessage) |
Deliver(Object message,
Set<AtmosphereResource> resources,
BroadcasterFuture<?> future,
Object originalMessage) |
Modifier and Type | Method and Description |
---|---|
CacheMessage |
getCache() |
BroadcasterFuture<?> |
getFuture() |
Object |
getMessage() |
Object |
getOriginalMessage() |
AtmosphereResource |
getResource() |
Set<AtmosphereResource> |
getResources() |
Deliver.TYPE |
getType() |
boolean |
isAsync() |
boolean |
isWriteLocally() |
void |
setAsync(boolean async) |
void |
setCache(CacheMessage cache) |
void |
setFuture(BroadcasterFuture<?> future) |
void |
setMessage(Object message) |
void |
setOriginalMessage(Object originalMessage) |
void |
setWriteLocally(boolean writeLocally) |
String |
toString() |
protected Object message
protected BroadcasterFuture<?> future
protected boolean writeLocally
protected Object originalMessage
protected final AtmosphereResource resource
protected final Set<AtmosphereResource> resources
protected final Deliver.TYPE type
protected CacheMessage cache
protected boolean async
public Deliver(Deliver.TYPE type, Object originalMessage, Object message, AtmosphereResource r, BroadcasterFuture<?> future, CacheMessage cache, boolean writeLocally, Set<AtmosphereResource> resources, boolean async)
public Deliver(Object message, AtmosphereResource r, BroadcasterFuture<?> future, Object originalMessage)
public Deliver(Object message, BroadcasterFuture<?> future, Object originalMessage)
public Deliver(AtmosphereResource r, Deliver e)
public Deliver(AtmosphereResource r, Deliver e, CacheMessage cacheMessage)
public Deliver(Object message, Set<AtmosphereResource> resources, BroadcasterFuture<?> future, Object originalMessage)
public Deliver(Object message, BroadcasterFuture<?> future, boolean writeLocally)
public Object getMessage()
public void setMessage(Object message)
public BroadcasterFuture<?> getFuture()
public void setFuture(BroadcasterFuture<?> future)
public boolean isWriteLocally()
public void setWriteLocally(boolean writeLocally)
public Object getOriginalMessage()
public void setOriginalMessage(Object originalMessage)
public AtmosphereResource getResource()
public Set<AtmosphereResource> getResources()
public Deliver.TYPE getType()
public CacheMessage getCache()
public void setCache(CacheMessage cache)
public boolean isAsync()
public void setAsync(boolean async)
Copyright © 2016. All rights reserved.