public class ConnectionTimer extends Object
| Constructor and Description |
|---|
ConnectionTimer(long timeout)
Creates new ConnectionTimer which shuts down overdue connections after
the given timeout.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelTimeout(TimedConnection conn)
Attempts to cancel timeout for the given connection.
|
void |
scheduleTimeout(TimedConnection conn,
boolean force)
Schedules timeout for given connection.
|
public ConnectionTimer(long timeout)
public void scheduleTimeout(TimedConnection conn, boolean force)
public boolean cancelTimeout(TimedConnection conn)
Copyright © 2016–2018. All rights reserved.