|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.cluster.ClusterStream
public class ClusterStream
Defines a connection to the client.
| Method Summary | |
|---|---|
void |
clearRecycle()
Clears the recycled connections. |
void |
close()
|
void |
free()
Recycles. |
java.lang.String |
getDebugId()
Returns the debug id. |
long |
getFreeTime()
Returns the free time, i.e. |
Hessian2StreamingInput |
getHessianInputStream()
Returns the hessian input stream |
Hessian2StreamingOutput |
getHessianOutputStream()
Returns the hessian output stream |
ServerPool |
getPool()
Returns the owning pool |
ReadStream |
getReadStream()
Returns the input stream. |
WriteStream |
getWriteStream()
Returns the write stream. |
boolean |
isLongIdle()
Returns true if nearing end of free time. |
boolean |
message(java.lang.String to,
java.lang.String from,
java.io.Serializable query)
|
boolean |
queryGet(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable query)
|
boolean |
queryResult(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable query)
|
boolean |
querySet(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable query)
|
long |
readLongValue()
|
java.io.Serializable |
readQueryResult(long id)
|
java.lang.String |
readStringValue()
|
void |
setFreeTime(long freeTime)
Sets the free time. |
java.lang.String |
toString()
|
void |
writeBinary(int code,
byte[] value)
Writes a hmux string to the target. |
void |
writeBinary(int code,
byte[] value,
int offset,
int len)
Writes a hmux string to the target. |
void |
writeExit()
Writes a hmux exit to the target. |
void |
writeInt(int code,
int value)
Writes a hmux int to the target. |
void |
writeLong(int code,
long id)
|
void |
writeLong(long id)
|
void |
writeQuit()
Writes a hmux quit to the target. |
void |
writeString(int code,
java.lang.String s)
|
void |
writeString(java.lang.String s)
|
void |
writeYield()
Writes a hmux yield to the target, used for unidirectional messages |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public ServerPool getPool()
public ReadStream getReadStream()
public WriteStream getWriteStream()
public Hessian2StreamingInput getHessianInputStream()
public Hessian2StreamingOutput getHessianOutputStream()
public long getFreeTime()
public void setFreeTime(long freeTime)
public boolean isLongIdle()
public boolean message(java.lang.String to,
java.lang.String from,
java.io.Serializable query)
throws java.io.IOException
java.io.IOException
public boolean queryGet(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable query)
throws java.io.IOException
java.io.IOException
public boolean querySet(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable query)
throws java.io.IOException
java.io.IOException
public boolean queryResult(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable query)
throws java.io.IOException
java.io.IOException
public java.io.Serializable readQueryResult(long id)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getDebugId()
public void clearRecycle()
public void free()
public void close()
public void writeExit()
throws java.io.IOException
java.io.IOException
public void writeQuit()
throws java.io.IOException
java.io.IOException
public void writeYield()
throws java.io.IOException
java.io.IOException
public void writeInt(int code,
int value)
throws java.io.IOException
java.io.IOException
public void writeLong(long id)
throws java.io.IOException
java.io.IOException
public void writeLong(int code,
long id)
throws java.io.IOException
java.io.IOException
public void writeString(java.lang.String s)
throws java.io.IOException
java.io.IOException
public void writeString(int code,
java.lang.String s)
throws java.io.IOException
java.io.IOException
public void writeBinary(int code,
byte[] value)
throws java.io.IOException
java.io.IOException
public void writeBinary(int code,
byte[] value,
int offset,
int len)
throws java.io.IOException
java.io.IOException
public long readLongValue()
throws java.io.IOException
java.io.IOException
public java.lang.String readStringValue()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||