本文整理匯總了Java中com.networknt.eventuate.jdbc.IdGenerator類的典型用法代碼示例。如果您正苦於以下問題:Java IdGenerator類的具體用法?Java IdGenerator怎麽用?Java IdGenerator使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
IdGenerator類屬於com.networknt.eventuate.jdbc包,在下文中一共展示了IdGenerator類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: MessageProducerJdbcConnectionImpl
import com.networknt.eventuate.jdbc.IdGenerator; //導入依賴的package包/類
public MessageProducerJdbcConnectionImpl(IdGenerator idGenerator) {
this.idGenerator = idGenerator;
}
示例2: MessageProducerJdbcImpl
import com.networknt.eventuate.jdbc.IdGenerator; //導入依賴的package包/類
/**
* This class should be constructed in service.yml and before MessageProducer binding,
* we need to have DataSource and IdGenerator bindings defined in service.yml
*
* @param dataSource DataSource
* @param idGenerator IdGenerator
*/
public MessageProducerJdbcImpl(DataSource dataSource, IdGenerator idGenerator) {
this.dataSource = dataSource;
this.idGenerator = idGenerator;
}