Class ClientGroupWrapper


  • public class ClientGroupWrapper
    extends java.lang.Object
    • Field Detail

      • logger

        public static final org.slf4j.Logger logger
      • groupConsumerSessions

        public java.util.Set<Session> groupConsumerSessions
      • groupProducerSessions

        public java.util.Set<Session> groupProducerSessions
      • started4Persistent

        public java.util.concurrent.atomic.AtomicBoolean started4Persistent
      • started4Broadcast

        public java.util.concurrent.atomic.AtomicBoolean started4Broadcast
      • inited4Persistent

        public java.util.concurrent.atomic.AtomicBoolean inited4Persistent
      • inited4Broadcast

        public java.util.concurrent.atomic.AtomicBoolean inited4Broadcast
      • producerStarted

        public java.util.concurrent.atomic.AtomicBoolean producerStarted
    • Method Detail

      • getTopic2sessionInGroupMapping

        public java.util.concurrent.ConcurrentHashMap<java.lang.String,​java.util.Set<Session>> getTopic2sessionInGroupMapping()
      • hasSubscription

        public boolean hasSubscription​(java.lang.String topic)
      • send

        public boolean send​(UpStreamMsgContext upStreamMsgContext,
                            org.apache.eventmesh.api.SendCallback sendCallback)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • request

        public void request​(UpStreamMsgContext upStreamMsgContext,
                            org.apache.eventmesh.api.RequestReplyCallback rrCallback,
                            long timeout)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • reply

        public boolean reply​(UpStreamMsgContext upStreamMsgContext)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addSubscription

        public boolean addSubscription​(org.apache.eventmesh.common.protocol.SubscriptionItem subscriptionItem,
                                       Session session)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • removeSubscription

        public boolean removeSubscription​(org.apache.eventmesh.common.protocol.SubscriptionItem subscriptionItem,
                                          Session session)
      • startClientGroupProducer

        public void startClientGroupProducer()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shutdownProducer

        public void shutdownProducer()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getGroup

        public java.lang.String getGroup()
      • setGroup

        public void setGroup​(java.lang.String group)
      • addGroupConsumerSession

        public boolean addGroupConsumerSession​(Session session)
      • addGroupProducerSession

        public boolean addGroupProducerSession​(Session session)
      • removeGroupConsumerSession

        public boolean removeGroupConsumerSession​(Session session)
      • removeGroupProducerSession

        public boolean removeGroupProducerSession​(Session session)
      • initClientGroupPersistentConsumer

        public void initClientGroupPersistentConsumer()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • startClientGroupPersistentConsumer

        public void startClientGroupPersistentConsumer()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • initClientGroupBroadcastConsumer

        public void initClientGroupBroadcastConsumer()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • startClientGroupBroadcastConsumer

        public void startClientGroupBroadcastConsumer()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • subscribe

        public void subscribe​(org.apache.eventmesh.common.protocol.SubscriptionItem subscriptionItem)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • unsubscribe

        public void unsubscribe​(org.apache.eventmesh.common.protocol.SubscriptionItem subscriptionItem)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shutdownBroadCastConsumer

        public void shutdownBroadCastConsumer()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shutdownPersistentConsumer

        public void shutdownPersistentConsumer()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getGroupConsumerSessions

        public java.util.Set<Session> getGroupConsumerSessions()
      • getGroupProducerSessions

        public java.util.Set<Session> getGroupProducerSessions()
      • setEventMeshTCPConfiguration

        public void setEventMeshTCPConfiguration​(EventMeshTCPConfiguration eventMeshTCPConfiguration)
      • setEventMeshTcpRetryer

        public void setEventMeshTcpRetryer​(EventMeshTcpRetryer eventMeshTcpRetryer)
      • setEventMeshTcpMonitor

        public void setEventMeshTcpMonitor​(EventMeshTcpMonitor eventMeshTcpMonitor)
      • setDownstreamDispatchStrategy

        public void setDownstreamDispatchStrategy​(DownstreamDispatchStrategy downstreamDispatchStrategy)
      • getSysId

        public java.lang.String getSysId()