Created
July 5, 2013 16:24
-
-
Save trishagee/5935655 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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