public class SHUFFLE extends Protocol
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
down |
protected List<Message> |
down_msgs |
protected int |
max_size |
protected long |
max_time |
protected Future<?> |
task |
protected TimeScheduler |
timer |
protected boolean |
up |
protected List<Message> |
up_msgs |
| Constructor and Description |
|---|
SHUFFLE() |
| Modifier and Type | Method and Description |
|---|---|
Object |
down(Event evt)
An event is to be sent down the stack.
|
int |
getMaxSize() |
long |
getMaxTime() |
void |
init()
Called after instance has been created (null constructor) and before protocol is started.
|
boolean |
isDown() |
boolean |
isUp() |
void |
setDown(boolean down) |
void |
setMaxSize(int max_size) |
void |
setMaxTime(long max_time) |
void |
setUp(boolean up) |
Object |
up(Event evt)
An event was received from the layer below.
|
destroy, dumpStats, enableStats, getConfigurableObjects, getDownProtocol, getId, getLevel, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getValue, isErgonomics, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, start, statsEnabled, stopprotected TimeScheduler timer
protected Future<?> task
protected boolean up
protected boolean down
protected int max_size
protected long max_time
public boolean isUp()
public void setUp(boolean up)
public boolean isDown()
public void setDown(boolean down)
public int getMaxSize()
public void setMaxSize(int max_size)
public long getMaxTime()
public void setMaxTime(long max_time)
public void init()
throws Exception
Protocolpublic Object up(Event evt)
Protocoldown_prot.down() or c) the event (or another event) is sent up
the stack using up_prot.up().public Object down(Event evt)
Protocoldown_prot.down(). In case of a GET_ADDRESS event (which tries to
retrieve the stack's address from one of the bottom layers), the layer may need to send
a new response event back up the stack using up_prot.up().Copyright © 2012 JBoss by Red Hat. All Rights Reserved.