本文整理匯總了Java中com.barchart.udt.nio.RendezvousChannelUDT類的典型用法代碼示例。如果您正苦於以下問題:Java RendezvousChannelUDT類的具體用法?Java RendezvousChannelUDT怎麽用?Java RendezvousChannelUDT使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RendezvousChannelUDT類屬於com.barchart.udt.nio包,在下文中一共展示了RendezvousChannelUDT類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: newRendezvousChannelUDT
import com.barchart.udt.nio.RendezvousChannelUDT; //導入依賴的package包/類
/**
* Convenience factory for {@link KindUDT#RENDEZVOUS} channels.
*/
static RendezvousChannelUDT newRendezvousChannelUDT(
final TypeUDT type) {
try {
return SelectorProviderUDT.from(type).openRendezvousChannel();
} catch (final IOException e) {
throw new ChannelException("failed to open a rendezvous channel", e);
}
}
示例2: newRendezvousChannelUDT
import com.barchart.udt.nio.RendezvousChannelUDT; //導入依賴的package包/類
/**
* Convenience factory for {@link KindUDT#RENDEZVOUS} channels.
*/
protected static RendezvousChannelUDT newRendezvousChannelUDT(
final TypeUDT type) {
try {
return SelectorProviderUDT.from(type).openRendezvousChannel();
} catch (final IOException e) {
throw new ChannelException("Failed to open channel");
}
}
示例3: newRendezvousChannelUDT
import com.barchart.udt.nio.RendezvousChannelUDT; //導入依賴的package包/類
/**
* Convenience factory for {@link KindUDT#RENDEZVOUS} channels.
*/
protected static RendezvousChannelUDT newRendezvousChannelUDT(final TypeUDT type) {
try {
return SelectorProviderUDT.from(type).openRendezvousChannel();
} catch (final IOException e) {
throw new ChannelException("Failed to open channel");
}
}