final class Session extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
Session.NotifyAcknowledgementListeners |
Modifier and Type | Field and Description |
---|---|
private Collection<AcknowledgmentSource.Listener> |
ackListeners |
(package private) static int |
CLIENT |
(package private) static int |
FINISHED |
(package private) static int |
IDLE |
private MuxInputStream |
in |
private int |
inRation |
(package private) boolean |
inRationInfinite |
private int |
inState |
(package private) static Logger |
logger
mux logger
|
private Mux |
mux |
(package private) static int |
OPEN |
private MuxOutputStream |
out |
private int |
outRation |
(package private) boolean |
outRationInfinite |
private int |
outState |
private boolean |
partialDeliveryStatus |
private boolean |
receivedAcknowledgment |
private boolean |
receivedAckRequired |
private boolean |
removeLater |
(package private) int |
role |
private boolean |
sentAckRequired |
(package private) static int |
SERVER |
private boolean |
sessionDown |
(package private) int |
sessionID |
private Object |
sessionLock
lock guarding all mutable instance state (below)
|
private static String[] |
stateNames |
private static Executor |
systemThreadPool
pool of threads for executing tasks in system thread group: used for
I/O (reader and writer) threads and other asynchronous tasks
|
(package private) static int |
TERMINATED |
Constructor and Description |
---|
Session(Mux mux,
int sessionID,
int role) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
abort() |
(package private) boolean |
ackListeners() |
(package private) InboundRequest |
getInboundRequest() |
(package private) int |
getInRation() |
(package private) int |
getInState() |
(package private) OutboundRequest |
getOutboundRequest() |
(package private) int |
getOutRation() |
(package private) int |
getOutState() |
(package private) void |
handleAbort(boolean partial) |
(package private) void |
handleAcknowledgment() |
(package private) void |
handleClose() |
(package private) void |
handleData(ByteBuffer data,
boolean eof,
boolean close,
boolean ackRequired) |
(package private) void |
handleIncrementRation(int increment) |
(package private) void |
handleOpen() |
(package private) boolean |
isReceivedAckRequired() |
(package private) boolean |
isRemoveLater() |
(package private) boolean |
isSentAckRequired() |
private void |
notifyAcknowledgmentListeners(boolean received) |
(package private) void |
setDown(String message,
Throwable cause) |
(package private) void |
setInRation(int inRation) |
(package private) void |
setInState(int newState) |
(package private) void |
setOutRation(int outRation) |
(package private) void |
setOutState(int newState) |
(package private) void |
setPartialDeliveryStatus(boolean partialDeliveryStatus) |
(package private) void |
setRemoveLater(boolean removeLater) |
(package private) void |
setSentAckRequired(boolean sentAckRequired) |
(package private) static boolean |
traceSupression()
This method prevents a SecurityException from being thrown for
a client proxy that doesn't have permission to read the property.
|
static final int CLIENT
static final int SERVER
static final int IDLE
static final int OPEN
static final int FINISHED
static final int TERMINATED
private static final String[] stateNames
private static final Executor systemThreadPool
static final Logger logger
private final Mux mux
final int sessionID
final int role
private final MuxOutputStream out
private final MuxInputStream in
private final Object sessionLock
private boolean sessionDown
private int outState
private int outRation
final boolean outRationInfinite
private boolean partialDeliveryStatus
private int inState
private int inRation
final boolean inRationInfinite
private boolean removeLater
private boolean receivedAckRequired
private final Collection<AcknowledgmentSource.Listener> ackListeners
private boolean sentAckRequired
private boolean receivedAcknowledgment
Session(Mux mux, int sessionID, int role)
static boolean traceSupression()
OutboundRequest getOutboundRequest()
InboundRequest getInboundRequest()
void abort()
void handleIncrementRation(int increment) throws ProtocolException
ProtocolException
void handleAbort(boolean partial) throws ProtocolException
ProtocolException
void handleClose() throws ProtocolException
ProtocolException
void handleAcknowledgment() throws ProtocolException
ProtocolException
void handleData(ByteBuffer data, boolean eof, boolean close, boolean ackRequired) throws ProtocolException
ProtocolException
void handleOpen() throws ProtocolException
ProtocolException
void setOutState(int newState)
void setInState(int newState)
boolean ackListeners()
private void notifyAcknowledgmentListeners(boolean received)
int getOutState()
int getOutRation()
void setOutRation(int outRation)
outRation
- the outRation to setint getInState()
void setPartialDeliveryStatus(boolean partialDeliveryStatus)
partialDeliveryStatus
- the partialDeliveryStatus to setboolean isSentAckRequired()
void setSentAckRequired(boolean sentAckRequired)
sentAckRequired
- the sentAckRequired to setint getInRation()
void setInRation(int inRation)
inRation
- the inRation to setboolean isRemoveLater()
void setRemoveLater(boolean removeLater)
removeLater
- the removeLater to setboolean isReceivedAckRequired()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.