public class MultipointServer.Session
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
hangup |
Constructor and Description |
---|
Session(java.nio.channels.SocketChannel channel,
java.net.InetSocketAddress address,
java.net.URI uri) |
Modifier and Type | Method and Description |
---|---|
boolean |
drain() |
long |
getCreated() |
MultipointServer.Session |
ops(int ops) |
java.lang.String |
read() |
void |
setURI(java.net.URI uri) |
void |
state(int ops,
org.apache.openejb.server.discovery.MultipointServer.State state) |
void |
tick() |
java.lang.String |
toString() |
void |
write(java.util.Collection<?> uris) |
void |
write(java.net.URI uri) |
public Session(java.nio.channels.SocketChannel channel, java.net.InetSocketAddress address, java.net.URI uri) throws java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
public MultipointServer.Session ops(int ops)
public long getCreated()
public void state(int ops, org.apache.openejb.server.discovery.MultipointServer.State state)
public void setURI(java.net.URI uri)
public void write(java.net.URI uri) throws java.io.IOException
java.io.IOException
public void write(java.util.Collection<?> uris) throws java.io.IOException
java.io.IOException
public boolean drain() throws java.io.IOException
java.io.IOException
public java.lang.String read() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void tick() throws java.io.IOException
java.io.IOException