static BsonDocument executeWrappedCommandProtocol(final WriteBinding binding, final String database, final BsonDocument command) { return executeWrappedCommandProtocol(binding, database, command, new IdentityTransformer<BsonDocument>()); }
static <T> T executeWrappedCommandProtocol(final ReadBinding binding, final String database, final BsonDocument command, final Decoder<T> decoder) { return executeWrappedCommandProtocol(binding, database, command, decoder, new IdentityTransformer<T>()); }
static <T> void executeWrappedCommandProtocolAsync(final AsyncReadBinding binding, final String database, final BsonDocument command, final Decoder<T> decoder, final SingleResultCallback<T> callback) { executeWrappedCommandProtocolAsync(binding, database, command, decoder, new IdentityTransformer<T>(), callback); }
static <T> void executeWrappedCommandProtocolAsync(final AsyncWriteBinding binding, final String database, final BsonDocument command, final Decoder<T> decoder, final SingleResultCallback<T> callback) { executeWrappedCommandProtocolAsync(binding, database, command, decoder, new IdentityTransformer<T>(), callback); }
static <T> T executeWrappedCommandProtocol(final WriteBinding binding, final String database, final BsonDocument command, final Decoder<T> decoder) { return executeWrappedCommandProtocol(binding, database, command, decoder, new IdentityTransformer<T>()); }
static BsonDocument executeWrappedCommandProtocol(final ReadBinding binding, final String database, final BsonDocument command, final Connection connection) { return executeWrappedCommandProtocol(binding, database, command, connection, new IdentityTransformer<BsonDocument>()); }
static void executeWrappedCommandProtocolAsync(final AsyncWriteBinding binding, final String database, final BsonDocument command, final AsyncConnection connection, final SingleResultCallback<BsonDocument> callback) { executeWrappedCommandProtocolAsync(binding, database, command, connection, new IdentityTransformer<BsonDocument>(), callback); }
private static <T> T executeWrappedCommandProtocol(final String database, final BsonDocument command, final Decoder<T> decoder, final Connection connection, final ReadPreference readPreference, final SessionContext sessionContext) { return executeWrappedCommandProtocol(database, command, new NoOpFieldNameValidator(), decoder, connection, readPreference, new IdentityTransformer<T>(), sessionContext); }
private static <T> T executeWrappedCommandProtocol(final String database, final BsonDocument command, final FieldNameValidator fieldNameValidator, final Decoder<T> decoder, final ConnectionSource source, final ReadPreference readPreference) { Connection connection = source.getConnection(); try { return executeWrappedCommandProtocol(database, command, fieldNameValidator, decoder, connection, readPreference, new IdentityTransformer<T>(), source.getSessionContext()); } finally { connection.release(); } }
static BsonDocument executeWrappedCommandProtocol(final WriteBinding binding, final String database, final BsonDocument command) { return executeWrappedCommandProtocol(binding, database, command, new IdentityTransformer<BsonDocument>()); }
static <T> T executeWrappedCommandProtocol(final WriteBinding binding, final String database, final BsonDocument command, final Decoder<T> decoder) { return executeWrappedCommandProtocol(binding, database, command, decoder, new IdentityTransformer<T>()); }
static <T> T executeWrappedCommandProtocol(final ReadBinding binding, final String database, final BsonDocument command, final Decoder<T> decoder) { return executeWrappedCommandProtocol(binding, database, command, decoder, new IdentityTransformer<T>()); }
static void executeWrappedCommandProtocolAsync(final AsyncWriteBinding binding, final String database, final BsonDocument command, final AsyncConnection connection, final SingleResultCallback<BsonDocument> callback) { executeWrappedCommandProtocolAsync(binding, database, command, connection, new IdentityTransformer<BsonDocument>(), callback); }
static <T> void executeWrappedCommandProtocolAsync(final AsyncWriteBinding binding, final String database, final BsonDocument command, final Decoder<T> decoder, final SingleResultCallback<T> callback) { executeWrappedCommandProtocolAsync(binding, database, command, decoder, new IdentityTransformer<T>(), callback); }
static <T> void executeWrappedCommandProtocolAsync(final AsyncReadBinding binding, final String database, final BsonDocument command, final Decoder<T> decoder, final SingleResultCallback<T> callback) { executeWrappedCommandProtocolAsync(binding, database, command, decoder, new IdentityTransformer<T>(), callback); }
private static <T> T executeWrappedCommandProtocol(final String database, final BsonDocument command, final FieldNameValidator fieldNameValidator, final Decoder<T> decoder, final ConnectionSource source, final ReadPreference readPreference) { Connection connection = source.getConnection(); try { return executeWrappedCommandProtocol(database, command, fieldNameValidator, decoder, connection, readPreference, new IdentityTransformer<T>(), source.getSessionContext()); } finally { connection.release(); } }
private static <T> T executeWrappedCommandProtocol(final String database, final BsonDocument command, final Decoder<T> decoder, final Connection connection, final ReadPreference readPreference, final SessionContext sessionContext) { return executeWrappedCommandProtocol(database, command, new NoOpFieldNameValidator(), decoder, connection, readPreference, new IdentityTransformer<T>(), sessionContext); }
static BsonDocument executeWrappedCommandProtocol(final ReadBinding binding, final String database, final BsonDocument command, final Connection connection) { return executeWrappedCommandProtocol(binding, database, command, connection, new IdentityTransformer<BsonDocument>()); }