grizzlyConnection.close();
}
});
TYRUS_CONNECTION.set(grizzlyConnection, connection);
TASK_PROCESSOR.set(grizzlyConnection, new TaskProcessor());
grizzlyConnection.addCloseListener(new CloseListener() {
@Override
public void onClosed(Closeable closeable, ICloseType type) throws IOException {
// close detected on connection