public < T > CompletableFuture < T > submit ( Operation < T > operation ) { if ( operation instanceof Query ) { return submit ( ( Query < T > ) operation ) ; } else if ( operation instanceof Command ) { return submit ( ( Command < T > ) operation ) ; } else { throw new UnsupportedOperationException ( "unknown operation type: " + operation . getClass ( ) ) ; } }
Submits an operation to the session .