private ErrorMessage(TransportException error, int streamId) { this(error); setStreamId(streamId); }
public EventMessage(Event event) { super(Message.Type.EVENT); this.event = event; this.setStreamId(-1); }
public static ErrorMessage fromException(Throwable e) { return fromException(e, null); }
public ResultMessage executeInternal(QueryState state, QueryOptions options) { Event.SchemaChange ce = announceMigration(state, true); return ce == null ? new ResultMessage.Void() : new ResultMessage.SchemaChange(ce); } }
public static RuntimeException wrap(Throwable t, int streamId) { return new WrappedException(t, streamId); }
public ResultMessage executeInternal(QueryState state, QueryOptions options) { Event.SchemaChange ce = announceMigration(state, true); return ce == null ? new ResultMessage.Void() : new ResultMessage.SchemaChange(ce); } }
private ErrorMessage(TransportException error, int streamId) { this(error); setStreamId(streamId); }
public EventMessage(Event event) { super(Message.Type.EVENT); this.event = event; this.setStreamId(-1); }
public static ErrorMessage fromException(Throwable e) { return fromException(e, null); }
public static RuntimeException wrap(Throwable t, int streamId) { return new WrappedException(t, streamId); }
public ResultMessage executeInternal(QueryState state, QueryOptions options) { Event.SchemaChange ce = announceMigration(state, true); return ce == null ? new ResultMessage.Void() : new ResultMessage.SchemaChange(ce); } }
private ErrorMessage(TransportException error, int streamId) { this(error); setStreamId(streamId); }
public EventMessage(Event event) { super(Message.Type.EVENT); this.event = event; this.setStreamId(-1); }
public static ErrorMessage fromException(Throwable e) { return fromException(e, null); }
public static RuntimeException wrap(Throwable t, int streamId) { return new WrappedException(t, streamId); }
public ResultMessage execute(QueryState state, QueryOptions options) throws RequestValidationException { // If an IF [NOT] EXISTS clause was used, this may not result in an actual schema change. To avoid doing // extra work in the drivers to handle schema changes, we return an empty message in this case. (CASSANDRA-7600) boolean didChangeSchema = announceMigration(false); return didChangeSchema ? new ResultMessage.SchemaChange(changeEvent()) : new ResultMessage.Void(); }
private ErrorMessage(TransportException error, int streamId) { this(error); setStreamId(streamId); }
public EventMessage(Event event) { super(Message.Type.EVENT); this.event = event; this.setStreamId(-1); }
public static ErrorMessage fromException(Throwable e) { return fromException(e, null); }
public static RuntimeException wrap(Throwable t, int streamId) { return new WrappedException(t, streamId); }