public class NIODataServer extends Object implements Runnable, DataServer
Constructor and Description |
---|
NIODataServer(InetSocketAddress address,
BlocksLocker locker)
Create a data server with direct access to worker storage.
|
public NIODataServer(InetSocketAddress address, BlocksLocker locker)
address
- The address of the data server.locker
- The lock system for lock blocks.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public int getPort()
getPort
in interface DataServer
public boolean isClosed()
isClosed
in interface DataServer
Copyright © 2015. All Rights Reserved.