接口的使用
org.springframework.util.IdGenerator
使用IdGenerator的程序包 程序包 说明 org.springframework.messaging Support for working with messaging APIs and protocols.org.springframework.messaging.support Provides implementations ofMessagealong with a MessageBuilder and MessageHeaderAccessor for building and working with messages and message headers, as well as variousMessageChannelimplementations 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 IdGeneratorMessageHeaders. getIdGenerator()org.springframework.messaging.support中IdGenerator的使用
返回IdGenerator的org.springframework.messaging.support中的方法 修饰符和类型 方法 说明 IdGeneratorIdTimestampMessageHeaderInitializer. getIdGenerator()Return the configuredIdGenerator, if any.参数类型为IdGenerator的org.springframework.messaging.support中的方法 修饰符和类型 方法 说明 voidIdTimestampMessageHeaderInitializer. setIdGenerator(IdGenerator idGenerator)Configure the IdGenerator strategy to initializeMessageHeaderAccessorinstances with.org.springframework.util中IdGenerator的使用
实现IdGenerator的org.springframework.util中的类 修饰符和类型 类 说明 classAlternativeJdkIdGeneratorAnIdGeneratorthat usesSecureRandomfor the initial seed andRandomthereafter, instead of callingUUID.randomUUID()every time asJdkIdGeneratordoes.classJdkIdGeneratorAnIdGeneratorthat callsUUID.randomUUID().classSimpleIdGeneratorA simpleIdGeneratorthat 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 IdGeneratorAbstractWebSocketSession. idGenerator