Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for onDisconnect (0.16 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/WatchForDisconnection.java

        @Override
        public void execute(final DaemonCommandExecution execution) {
            // Watch for the client disconnecting before we call stop()
            execution.getConnection().onDisconnect(new Runnable() {
                @Override
                public void run() {
                    LOGGER.warn("thread {}: client disconnection detected, canceling the build", Thread.currentThread().getId());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. pilot/pkg/autoregistration/connections.go

    	ID() string
    	Proxy() *model.Proxy
    	ConnectedAt() time.Time
    	Stop()
    }
    
    // a single proxy may have multiple connections, so we track them here
    // when a WorkloadGroup is deleted, we can force disconnects
    // when OnDisconnect occurs, we only trigger cleanup when there are no more connections for that proxy
    type adsConnections struct {
    	sync.Mutex
    
    	// keyed by proxy id, then connection id
    	byProxy map[proxyKey]map[string]connection
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 19 20:41:55 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. tests/fuzz/autoregistration_controller_fuzzer.go

    // in the workloadentry package. It does so by setting
    // up a workloadentry controller with a proxy with
    // pseudo-random values.
    // The fuzzer then uses the controller to test:
    // 1: OnConnect
    // 2: OnDisconnect
    // 3: QueueWorkloadEntryHealth
    func FuzzWE(data []byte) int {
    	f := fuzz.NewConsumer(data)
    	proxy := &model.Proxy{}
    	err := f.GenerateStruct(proxy)
    	if err != nil {
    		return 0
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 19 20:41:55 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/api/DaemonConnection.java

         * </ul>
         *
         * Note: the handler may be run from another thread before this method returns.
         *
         * @param handler the handler. Use null to remove the current handler.
         */
        void onDisconnect(@Nullable Runnable handler);
    
        /**
         * Registers a handler for when this connection receives cancel command. The handler is notified at most once.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. internal/grid/msg_string.go

    	_ = x[OpDisconnectServerMux-8]
    	_ = x[OpMuxClientMsg-9]
    	_ = x[OpMuxServerMsg-10]
    	_ = x[OpUnblockSrvMux-11]
    	_ = x[OpUnblockClMux-12]
    	_ = x[OpAckMux-13]
    	_ = x[OpRequest-14]
    	_ = x[OpResponse-15]
    	_ = x[OpDisconnect-16]
    	_ = x[OpMerged-17]
    }
    
    const _Op_name = "ConnectConnectResponsePingPongConnectMuxMuxConnectErrorDisconnectClientMuxDisconnectServerMuxMuxClientMsgMuxServerMsgUnblockSrvMuxUnblockClMuxAckMuxRequestResponseDisconnectMerged"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. internal/grid/msg.go

    	// FlagPayloadIsErr is used to signify that the payload is a string error converted to byte slice.
    	// When a response is received, the mux is already removed from the remote.
    	OpResponse
    
    	// OpDisconnect instructs that remote wants to disconnect
    	OpDisconnect
    
    	// OpMerged is several operations merged into one.
    	OpMerged
    )
    
    const (
    	// FlagCRCxxh3 indicates that, the lower 32 bits of xxhash3 of the serialized
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 28 19:22:29 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top