| PREV CLASS NEXT CLASS | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.netio.rtt
|
Class RttAccessPoint.ListeningServer
|
class RttAccessPoint.ListeningServer
RttAccessPoint delegates listening on the specific RttEndpoint to ListeningServer
Implements:
ConnectionListener
Links:
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
package
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
package
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
package
Implementation Implementation Link
RttAccessPoint delegates listening on the specific RttEndpoint to ListeningServer
| Field Summary |
|
|
|
|
int |
|
|
|
TimerTask |
|
TimerTask |
|
ReentrantLock |
|
| Constructor Summary |
protected void |
|
| Method Summary |
private void |
|
protected synchronized void |
|
protected synchronized void |
|
protected void |
|
public void |
|
protected void |
|
protected void |
|
protected void |
|
Multiplicity:
1
Multiplicity:
1
int counter
Multiplicity:
1
Multiplicity:
1
TimerTask retryListeningPrimary
Multiplicity:
1
TimerTask retryListeningSecondary
Multiplicity:
1
ReentrantLock retryLock
Multiplicity:
1
Stereotype:
create
Accepts new RTT connection, or rejects it if there is already connection with the same
host id
Parameters:
channel
protected synchronized void decrementConnectCounter ()
Decrements the allowed connections counter and stops listening when no more connections
are allowed. Does nothing if the number of allowed connectins is unlimited.
Synchronized.
protected synchronized void incrementConnectCounter ()
Increments the allowed connections counter. Does nothing if the number of allowed
connectins is unlimited.
Synchronized.
protected void listen ()
Starts listening for connections on both tcp channels
Gets notified when a tcp channel connects
Parameters:
channel
newly connected tcp channel
Registeres the first half channel (ID_NEW)
Parameters:
channel
Merges two rtt half channels into one
Parameters:
channel
the second half channel (ID_EXTRA)
protected void stop ()
Stops listening on both tcp channels
| PREV CLASS NEXT CLASS | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|