public class NamedChannelBundle<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Queue<T>> |
valueQueueByName
The ChannelValueStore used to store the valueQueueByName for the Channel
|
| Constructor and Description |
|---|
NamedChannelBundle() |
NamedChannelBundle(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getName() |
boolean |
isClosed() |
void |
notifyReaders() |
T |
read()
Reads an Object from the Channel.
|
T |
read(Collection<String> names) |
T |
read(long timeout)
Reads an Object from the Channel.
|
T |
read(long timeout,
Collection<String> names) |
T |
read(long timeout,
String... names) |
T |
read(String... names) |
void |
readConnect() |
void |
readDisconnect() |
Collection<T> |
remove(String name) |
void |
write(String name,
T value)
Writes a named Object to the Channel.
|
void |
writeConnect() |
void |
writeDisconnect() |
public NamedChannelBundle()
public NamedChannelBundle(String name)
public void close()
public String getName()
public boolean isClosed()
public void notifyReaders()
public T read()
public T read(Collection<String> names)
public T read(long timeout)
timeout - The maximum time to wait in milliseconds.public T read(long timeout, Collection<String> names)
public void readConnect()
public void readDisconnect()
public Collection<T> remove(String name)
public void write(String name, T value)
value - The object to write to the Channel.public void writeConnect()
public void writeDisconnect()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.