Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for setAsyncId (0.09 sec)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            void testIsResponseAsyncFalse() {
                testRequest.setAsyncId(0);
                assertFalse(testRequest.isResponseAsync());
            }
    
            @Test
            @DisplayName("isResponseAsync should return true when asyncId is not 0")
            void testIsResponseAsyncTrue() {
                testRequest.setAsyncId(12345L);
                assertTrue(testRequest.isResponseAsync());
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/Smb2CancelRequest.java

         */
        public Smb2CancelRequest(final Configuration config, final long mid, final long asyncId) {
            super(config, SMB2_CANCEL);
            setMid(mid);
            setAsyncId(asyncId);
            if (asyncId != 0) {
                addFlags(SMB2_FLAGS_ASYNC_COMMAND);
            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Request#getCreditCost()
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            return this.asyncId;
        }
    
        /**
         * Sets the asynchronous identifier for this message.
         *
         * @param asyncId
         *            the asyncId to set
         */
        public final void setAsyncId(final long asyncId) {
            this.asyncId = asyncId;
        }
    
        /**
         * Gets the credit count for this message.
         *
         * @return the credit
         */
        public final int getCredit() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            }
    
            @Test
            @DisplayName("Should get and set async ID")
            void testAsyncIdProperty() {
                assertEquals(0, testMessage.getAsyncId());
                testMessage.setAsyncId(67890L);
                assertEquals(67890L, testMessage.getAsyncId());
            }
    
            @Test
            @DisplayName("Should get and set credit")
            void testCreditProperty() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportImpl.java

                    resp.setAsyncHandled(true);
                    final boolean first = !req.isAsync();
                    req.setAsyncId(resp.getAsyncId());
                    final Long exp = resp.getExpiration();
                    if (exp != null) {
                        resp.setExpiration(System.currentTimeMillis() + getResponseTimeout(request));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top