public class NioClient extends Object implements SimpleClient
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
submit(RequestMessage requestMessage,
Consumer<ResponseMessage> callback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
submit
public NioClient()
public NioClient(URI uri)
public void submit(RequestMessage requestMessage, Consumer<ResponseMessage> callback) throws Exception
submit
in interface SimpleClient
Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.