| Package | Description |
|---|---|
| org.eclipse.californium.scandium | |
| org.eclipse.californium.scandium.dtls |
| Modifier and Type | Method and Description |
|---|---|
void |
MdcConnectionListener.afterExecution(Connection connection) |
void |
ConnectionExecutionListener.afterExecution(Connection connection)
Callback, after a executor processed a connection.
|
void |
MdcConnectionListener.beforeExecution(Connection connection) |
void |
ConnectionExecutionListener.beforeExecution(Connection connection)
Callback, when a executor begin processing a connection.
|
void |
MdcConnectionListener.onConnectionEstablished(Connection connection) |
void |
ConnectionListener.onConnectionEstablished(Connection connection)
Callback, when DTLS session is established by a successful handshake.
|
void |
MdcConnectionListener.onConnectionRemoved(Connection connection) |
void |
ConnectionListener.onConnectionRemoved(Connection connection)
Callback, when connection gets removed from the connection store.
|
void |
DTLSConnector.processRecord(Record record,
Connection connection)
Process received record.
|
void |
MdcConnectionListener.updateExecution(Connection connection) |
void |
ConnectionExecutionListener.updateExecution(Connection connection)
Callback, when a connection changed its state.
|
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
DTLSConnector.startForEach(org.eclipse.californium.elements.util.LeastRecentlyUsedCache.Predicate<Connection> handler)
Start applying provided handler to all connections.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.californium.elements.util.LeastRecentlyUsedCache<ConnectionId,Connection> |
InMemoryConnectionStore.connections |
protected ConcurrentMap<InetSocketAddress,Connection> |
InMemoryConnectionStore.connectionsByAddress |
protected ConcurrentMap<SessionId,Connection> |
InMemoryConnectionStore.connectionsByEstablishedSession |
| Modifier and Type | Method and Description |
|---|---|
Connection |
ResumptionSupportingConnectionStore.find(SessionId id)
Finds a connection by its session ID.
|
Connection |
InMemoryConnectionStore.find(SessionId id) |
Connection |
ResumptionSupportingConnectionStore.get(ConnectionId cid)
Gets a connection by its connection id.
|
Connection |
InMemoryConnectionStore.get(ConnectionId cid) |
Connection |
ResumptionSupportingConnectionStore.get(InetSocketAddress peerAddress)
Gets a connection by its peer address.
|
Connection |
InMemoryConnectionStore.get(InetSocketAddress peerAddress) |
Connection |
Handshaker.getConnection()
Gets related connection.
|
Connection |
AvailableConnections.getConnectionByAddress()
Get connection associated with the peer's address.
|
Connection |
AvailableConnections.getConnectionBySessionId()
Get connection associated with the session id.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Connection> |
ResumptionSupportingConnectionStore.iterator()
Get "weakly consistent" iterator over all connections.
|
Iterator<Connection> |
InMemoryConnectionStore.iterator()
Get "weakly consistent" iterator over all connections.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RecordLayer.processRecord(Record record,
Connection connection)
Process received record.
|
boolean |
ResumptionSupportingConnectionStore.put(Connection connection)
Puts a connection into the store.
|
boolean |
InMemoryConnectionStore.put(Connection connection)
Puts a connection into the store.
|
void |
ResumptionSupportingConnectionStore.putEstablishedSession(DTLSSession session,
Connection connection)
Associates the connection with the session id.
|
void |
InMemoryConnectionStore.putEstablishedSession(DTLSSession session,
Connection connection) |
boolean |
ResumptionSupportingConnectionStore.remove(Connection connection)
Removes a connection from the store and session cache.
|
boolean |
InMemoryConnectionStore.remove(Connection connection) |
boolean |
ResumptionSupportingConnectionStore.remove(Connection connection,
boolean removeFromSessionCache)
Removes a connection from the store and optional from the session cache.
|
boolean |
InMemoryConnectionStore.remove(Connection connection,
boolean removeFromSessionCache) |
boolean |
InMemoryConnectionStore.removeFromAddress(Connection connection)
Deprecated.
since 2.3 obsolete, see
close(Record). |
boolean |
CloseSupportingConnectionStore.removeFromAddress(Connection connection)
Deprecated.
Remove a connection in the address-table in the store.
|
void |
ResumptionSupportingConnectionStore.removeFromEstablishedSessions(DTLSSession session,
Connection connection)
Remove the association of the connection with the session id.
|
void |
InMemoryConnectionStore.removeFromEstablishedSessions(DTLSSession session,
Connection connection) |
void |
AvailableConnections.setConnectionByAddress(Connection connection)
Set connection associated with the peer's address.
|
void |
AvailableConnections.setConnectionBySessionId(Connection connection)
Set connection associated with the session id.
|
boolean |
ResumptionSupportingConnectionStore.update(Connection connection,
InetSocketAddress newPeerAddress)
Update a connection in the store.
|
boolean |
InMemoryConnectionStore.update(Connection connection,
InetSocketAddress newPeerAddress) |
| Constructor and Description |
|---|
ClientHandshaker(DTLSSession session,
RecordLayer recordLayer,
ScheduledExecutorService timer,
Connection connection,
DtlsConnectorConfig config,
boolean probe)
Creates a new handshaker for negotiating a DTLS session with a server.
|
Handshaker(boolean isClient,
int initialMessageSeq,
DTLSSession session,
RecordLayer recordLayer,
ScheduledExecutorService timer,
Connection connection,
DtlsConnectorConfig config)
Creates a new handshaker for negotiating a DTLS session with a given
peer.
|
ResumingClientHandshaker(DTLSSession session,
RecordLayer recordLayer,
ScheduledExecutorService timer,
Connection connection,
DtlsConnectorConfig config,
boolean probe)
Creates a new handshaker for resuming an existing session with a server.
|
ResumingServerHandshaker(int sequenceNumber,
DTLSSession session,
RecordLayer recordLayer,
ScheduledExecutorService timer,
Connection connection,
DtlsConnectorConfig config)
Creates a new handshaker for resuming an existing session with a client.
|
ServerHandshaker(int initialMessageSequenceNo,
DTLSSession session,
RecordLayer recordLayer,
ScheduledExecutorService timer,
Connection connection,
DtlsConnectorConfig config)
Creates a handshaker for negotiating a DTLS session with a client
following the full DTLS handshake protocol.
|
Copyright © 2023 Eclipse Foundation. All rights reserved.