/** * Build a new inbound event instance using the supplied data. * * @return new inbound event instance. */ public InboundEvent build() { return new InboundEvent( name, id, commentBuilder.length() > 0 ? commentBuilder.substring(0, commentBuilder.length() - 1) : null, reconnectDelay, dataStream.toByteArray(), workers, annotations, mediaType, headers); } }
/** * Build a new inbound event instance using the supplied data. * * @return new inbound event instance. */ public InboundEvent build() { return new InboundEvent( name, id, commentBuilder.length() > 0 ? commentBuilder.substring(0, commentBuilder.length() - 1) : null, reconnectDelay, dataStream.toByteArray(), workers, annotations, mediaType, headers); } }
/** * Build a new inbound event instance using the supplied data. * * @return new inbound event instance. */ public InboundEvent build() { return new InboundEvent( name, id, commentBuilder.length() > 0 ? commentBuilder.substring(0, commentBuilder.length() - 1) : null, reconnectDelay, dataStream.toByteArray(), workers, annotations, mediaType, headers); } }
/** * Build a new inbound event instance using the supplied data. * * @return new inbound event instance. */ public InboundEvent build() { return new InboundEvent( name, id, commentBuilder.length() > 0 ? commentBuilder.substring(0, commentBuilder.length() - 1) : null, reconnectDelay, dataStream.toByteArray(), workers, annotations, mediaType, headers); } }