org.atmosphere.cpr
Class Deliver

java.lang.Object
  extended by org.atmosphere.cpr.Deliver
All Implemented Interfaces:
Serializable

public class Deliver
extends Object
implements Serializable

A Deliver is an Broadcaster's internal token that is created before the message gets Broadcaster. A Deliver gives information about what will be delivered, to whow, etc.

Author:
Jeanfrancois Arcand
See Also:
Serialized Form

Nested Class Summary
static class Deliver.TYPE
           
 
Field Summary
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 Summary
Deliver(AtmosphereResource r, Deliver e)
           
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)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected Object message

future

protected BroadcasterFuture<?> future

writeLocally

protected boolean writeLocally

originalMessage

protected Object originalMessage

resource

protected final AtmosphereResource resource

resources

protected final Set<AtmosphereResource> resources

type

protected final Deliver.TYPE type

cache

protected CacheMessage cache

async

protected boolean async
Constructor Detail

Deliver

public Deliver(Deliver.TYPE type,
               Object originalMessage,
               Object message,
               AtmosphereResource r,
               BroadcasterFuture<?> future,
               CacheMessage cache,
               boolean writeLocally,
               Set<AtmosphereResource> resources,
               boolean async)

Deliver

public Deliver(Object message,
               AtmosphereResource r,
               BroadcasterFuture<?> future,
               Object originalMessage)

Deliver

public Deliver(Object message,
               BroadcasterFuture<?> future,
               Object originalMessage)

Deliver

public Deliver(AtmosphereResource r,
               Deliver e)

Deliver

public Deliver(Object message,
               Set<AtmosphereResource> resources,
               BroadcasterFuture<?> future,
               Object originalMessage)

Deliver

public Deliver(Object message,
               BroadcasterFuture<?> future,
               boolean writeLocally)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getMessage

public Object getMessage()

setMessage

public void setMessage(Object message)

getFuture

public BroadcasterFuture<?> getFuture()

setFuture

public void setFuture(BroadcasterFuture<?> future)

isWriteLocally

public boolean isWriteLocally()

setWriteLocally

public void setWriteLocally(boolean writeLocally)

getOriginalMessage

public Object getOriginalMessage()

setOriginalMessage

public void setOriginalMessage(Object originalMessage)

getResource

public AtmosphereResource getResource()

getResources

public Set<AtmosphereResource> getResources()

getType

public Deliver.TYPE getType()

getCache

public CacheMessage getCache()

setCache

public void setCache(CacheMessage cache)

isAsync

public boolean isAsync()

setAsync

public void setAsync(boolean async)


Copyright © 2014. All Rights Reserved.