接口的使用
org.springframework.util.IdGenerator
使用IdGenerator的程序包 程序包 说明 org.springframework.messaging Support for working with messaging APIs and protocols.org.springframework.messaging.support Provides implementations ofMessage
along with a MessageBuilder and MessageHeaderAccessor for building and working with messages and message headers, as well as variousMessageChannel
implementations and channel interceptor support.org.springframework.util Miscellaneous utility classes, such as String manipulation utilities, a Log4J configurer, and a state holder for paged lists of objects.org.springframework.web.socket.adapter Classes adapting Spring's WebSocket API to and from WebSocket providers.org.springframework.messaging中IdGenerator的使用
返回IdGenerator的org.springframework.messaging中的方法 修饰符和类型 方法 说明 protected static IdGenerator
MessageHeaders. getIdGenerator()
org.springframework.messaging.support中IdGenerator的使用
返回IdGenerator的org.springframework.messaging.support中的方法 修饰符和类型 方法 说明 IdGenerator
IdTimestampMessageHeaderInitializer. getIdGenerator()
Return the configuredIdGenerator
, if any.参数类型为IdGenerator的org.springframework.messaging.support中的方法 修饰符和类型 方法 说明 void
IdTimestampMessageHeaderInitializer. setIdGenerator(IdGenerator idGenerator)
Configure the IdGenerator strategy to initializeMessageHeaderAccessor
instances with.org.springframework.util中IdGenerator的使用
实现IdGenerator的org.springframework.util中的类 修饰符和类型 类 说明 class
AlternativeJdkIdGenerator
AnIdGenerator
that usesSecureRandom
for the initial seed andRandom
thereafter, instead of callingUUID.randomUUID()
every time asJdkIdGenerator
does.class
JdkIdGenerator
AnIdGenerator
that callsUUID.randomUUID()
.class
SimpleIdGenerator
A simpleIdGenerator
that starts at 1, increments up toLong.MAX_VALUE
, and then rolls over.org.springframework.web.socket.adapter中IdGenerator的使用
声明为IdGenerator的org.springframework.web.socket.adapter中的字段 修饰符和类型 字段 说明 protected static IdGenerator
AbstractWebSocketSession. idGenerator