io.openmessaging.Promise Java Examples

The following examples show how to use io.openmessaging.Promise. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: V5Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #2
Source File: V6Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #3
Source File: V6Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #4
Source File: V4Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #5
Source File: V4Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #6
Source File: V2Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #7
Source File: V2Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #8
Source File: V5Producer2.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #9
Source File: V5Producer2.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #10
Source File: V5Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #11
Source File: V6ProducerNoStr.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #12
Source File: DefaultProducer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #13
Source File: DefaultProducer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #14
Source File: ProducerImpl.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message) {
    return sendAsync(message, this.rocketmqProducer.getSendMsgTimeout());
}
 
Example #15
Source File: ProducerImpl.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message, final KeyValue properties) {
    long timeout = properties.containsKey(PropertyKeys.OPERATION_TIMEOUT)
        ? properties.getInt(PropertyKeys.OPERATION_TIMEOUT) : this.rocketmqProducer.getSendMsgTimeout();
    return sendAsync(message, timeout);
}
 
Example #16
Source File: ProducerImpl.java    From rocketmq-all-4.1.0-incubating with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message) {
    return sendAsync(message, this.rocketmqProducer.getSendMsgTimeout());
}
 
Example #17
Source File: ProducerImpl.java    From rocketmq-all-4.1.0-incubating with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message, final KeyValue properties) {
    long timeout = properties.containsKey(PropertyKeys.OPERATION_TIMEOUT)
        ? properties.getInt(PropertyKeys.OPERATION_TIMEOUT) : this.rocketmqProducer.getSendMsgTimeout();
    return sendAsync(message, timeout);
}
 
Example #18
Source File: ProducerImpl.java    From rocketmq with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message) {
    return sendAsync(message, this.rocketmqProducer.getSendMsgTimeout());
}
 
Example #19
Source File: ProducerImpl.java    From rocketmq with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message, final KeyValue properties) {
    long timeout = properties.containsKey(Message.BuiltinKeys.TIMEOUT)
        ? properties.getInt(Message.BuiltinKeys.TIMEOUT) : this.rocketmqProducer.getSendMsgTimeout();
    return sendAsync(message, timeout);
}
 
Example #20
Source File: V1Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #21
Source File: ProducerImpl.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message, final KeyValue properties) {
    long timeout = properties.containsKey(PropertyKeys.OPERATION_TIMEOUT)
        ? properties.getInt(PropertyKeys.OPERATION_TIMEOUT) : this.rocketmqProducer.getSendMsgTimeout();
    return sendAsync(message, timeout);
}
 
Example #22
Source File: ProducerImpl.java    From rocketmq-4.3.0 with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message) {
    return sendAsync(message, this.rocketmqProducer.getSendMsgTimeout());
}
 
Example #23
Source File: ProducerImpl.java    From rocketmq-4.3.0 with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message, final KeyValue properties) {
    long timeout = properties.containsKey(Message.BuiltinKeys.TIMEOUT)
        ? properties.getInt(Message.BuiltinKeys.TIMEOUT) : this.rocketmqProducer.getSendMsgTimeout();
    return sendAsync(message, timeout);
}
 
Example #24
Source File: ProducerImpl.java    From rocketmq-read with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message) {
    return sendAsync(message, this.rocketmqProducer.getSendMsgTimeout());
}
 
Example #25
Source File: ProducerImpl.java    From rocketmq-read with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message, final KeyValue properties) {
    long timeout = properties.containsKey(Message.BuiltinKeys.TIMEOUT)
        ? properties.getInt(Message.BuiltinKeys.TIMEOUT) : this.rocketmqProducer.getSendMsgTimeout();
    return sendAsync(message, timeout);
}
 
Example #26
Source File: V7Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #27
Source File: V7Producer.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #28
Source File: V7ProducerList.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #29
Source File: V7ProducerList.java    From coding-snippets with MIT License 4 votes vote down vote up
@Override public Promise<Void> sendAsync(Message message, KeyValue properties) {
    throw new UnsupportedOperationException("Unsupported");
}
 
Example #30
Source File: ProducerImpl.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
@Override
public Promise<SendResult> sendAsync(final Message message) {
    return sendAsync(message, this.rocketmqProducer.getSendMsgTimeout());
}