Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getCredit (0.05 sec)

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

            int credits = 10;
    
            // When
            request.setRequestCredits(credits);
    
            // Then
            assertEquals(credits, request.getCredit(), "Credits should be set correctly");
        }
    
        @Test
        @DisplayName("Test setTid sets tree ID")
        void testSetTid() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            void testSetRequestCredits() {
                int credits = 10;
                testRequest.setRequestCredits(credits);
                assertEquals(credits, testRequest.getCredit());
            }
    
            @Test
            @DisplayName("setTid should set tree ID")
            void testSetTid() {
                int tid = 12345;
                testRequest.setTid(tid);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Response#getGrantedCredits()
         */
        @Override
        public int getGrantedCredits() {
            return getCredit();
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws SMBProtocolDecodingException if there is an error decoding the response
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            }
    
            @Test
            @DisplayName("Should get and set credit")
            void testCreditProperty() {
                assertEquals(0, testMessage.getCredit());
                testMessage.setCredit(100);
                assertEquals(100, testMessage.getCredit());
            }
    
            @Test
            @DisplayName("Should get credit charge")
            void testCreditChargeProperty() {
    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/internal/smb2/ServerMessageBlock2.java

         *
         * @return the credit
         */
        public final int getCredit() {
            return this.credit;
        }
    
        /**
         * Sets the credit count for this message.
         *
         * @param credit
         *            the credit to set
         */
        public final void setCredit(final int credit) {
            this.credit = credit;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#getInitialCredits()
         */
        @Override
        public int getInitialCredits() {
            return getCredit();
        }
    
        /**
         * Gets the SMB dialect revision selected by the server.
         *
         * @return the dialectRevision
         */
        public int getDialectRevision() {
            return this.dialectRevision;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            assertTrue(resp instanceof ServerMessageBlock2Response);
            assertTrue(resp instanceof SmbNegotiationResponse);
        }
    
        @Test
        @DisplayName("Should return initial credits from getCredit")
        void testGetInitialCredits() throws Exception {
            // Given - set credit using reflection
            Field creditField = ServerMessageBlock2.class.getDeclaredField("credit");
            creditField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

                    if (log.isDebugEnabled()) {
                        log.debug("Have intermediate reply " + response);
                    }
    
                    if (first) {
                        final int credit = resp.getCredit();
                        if (log.isDebugEnabled()) {
                            log.debug("Credit from intermediate " + credit);
                        }
                        this.credits.release(credit);
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Request#setRequestCredits(int)
         */
        @Override
        public void setRequestCredits(final int credits) {
            setCredit(credits);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#getOverrideTimeout()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/Smb2CancelRequest.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Request#setRequestCredits(int)
         */
        @Override
        public void setRequestCredits(final int credits) {
            setCredit(credits);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#setTid(int)
         */
        @Override
        public void setTid(final int t) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top