// Path: mq-aliyun-producer-spring-boot-starter/src/main/java/com/github/mq/producer/models/DeliveryOption.java
// public class DeliveryOption {
//     private String key;
//     private Long deliverTime;
//     public String getKey() {
//         return key;
//     }
// 
//     public DeliveryOption(){}
//     public DeliveryOption(String key){
//         this.key = key;
//     }
// 
//     public DeliveryOption setKey(String key) {
//         this.key = key;
//         return this;
//     }
// 
//     public Long getDeliverTime() {
//         return deliverTime;
//     }
// 
//     public DeliveryOption setDeliverTime(Long deliverTime) {
//         this.deliverTime = deliverTime;
//         return this;
//     }
// }


import com.aliyun.openservices.ons.api.Producer;
import com.aliyun.openservices.ons.api.SendCallback;
import com.aliyun.openservices.ons.api.SendResult;
import com.aliyun.openservices.ons.api.order.OrderProducer;
import com.github.mq.producer.models.DeliveryOption;
package com.github.mq.producer;


/**
 * Created by wangziqing on 17/7/17.
 */
public interface ProducerFactory {
    void sendAsync(final Enum address,final Object message);
// Path: mq-aliyun-producer-spring-boot-starter/src/main/java/com/github/mq/producer/models/DeliveryOption.java
// public class DeliveryOption {
//     private String key;
//     private Long deliverTime;
//     public String getKey() {
//         return key;
//     }
// 
//     public DeliveryOption(){}
//     public DeliveryOption(String key){
//         this.key = key;
//     }
// 
//     public DeliveryOption setKey(String key) {
//         this.key = key;
//         return this;
//     }
// 
//     public Long getDeliverTime() {
//         return deliverTime;
//     }
// 
//     public DeliveryOption setDeliverTime(Long deliverTime) {
//         this.deliverTime = deliverTime;
//         return this;
//     }
// }


// Path: mq-aliyun-producer-spring-boot-starter/src/main/java/com/github/mq/producer/ProducerFactory.java
import com.aliyun.openservices.ons.api.Producer;
import com.aliyun.openservices.ons.api.SendCallback;
import com.aliyun.openservices.ons.api.SendResult;
import com.aliyun.openservices.ons.api.order.OrderProducer;
import com.github.mq.producer.models.DeliveryOption;

package com.github.mq.producer;


/**
 * Created by wangziqing on 17/7/17.
 */
public interface ProducerFactory {
    void sendAsync(final Enum address,final Object message);
    void sendAsync(final Enum address,final Object message, final DeliveryOption deliveryOption);