Skip to content

Instantly share code, notes, and snippets.

@trishagee
Created July 5, 2013 16:24
Show Gist options
  • Save trishagee/5935655 to your computer and use it in GitHub Desktop.
Save trishagee/5935655 to your computer and use it in GitHub Desktop.
private static class TestAsyncConnectionFactory implements AsyncConnectionFactory {
@Override
public AsyncConnection create(final ServerAddress serverAddress) {
return new AsyncConnection() {
@Override
public void sendMessage(final List<ByteBuf> byteBuffers, final SingleResultCallback<Void> callback) {
throw new UnsupportedOperationException();
}
@Override
public void receiveMessage(final ResponseSettings responseSettings, final SingleResultCallback<ResponseBuffers> callback) {
throw new UnsupportedOperationException();
}
@Override
public void close() {
}
@Override
public boolean isClosed() {
throw new UnsupportedOperationException();
}
@Override
public ServerAddress getServerAddress() {
throw new UnsupportedOperationException();
}
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment