@@ -39,16 +39,11 @@ has _server_session_pool => (
39
39
builder => sub { [] },
40
40
);
41
41
42
- =method get_server_session
43
42
44
- my $session = $pool->get_server_session;
45
-
46
- Returns a L<MongoDB::ServerSession> that was at least one minute remaining
47
- before session times out. Returns undef if no sessions available.
48
-
49
- Also retires any expiring sessions from the front of the queue as requried.
50
-
51
- =cut
43
+ # Returns a L<MongoDB::ServerSession> that was at least one minute remaining
44
+ # before session times out. Returns undef if no sessions available.
45
+ #
46
+ # Also retires any expiring sessions from the front of the queue as requried.
52
47
53
48
sub get_server_session {
54
49
my ( $self ) = @_ ;
@@ -64,18 +59,12 @@ sub get_server_session {
64
59
return MongoDB::_ServerSession-> new;
65
60
}
66
61
67
- =method retire_server_session
68
-
69
- $pool->retire_server_session( $session );
70
-
71
- Place a session back into the pool for use. Will check that there is at least
72
- one minute remaining in the session, and if so will place the session at the
73
- front of the pool.
74
-
75
- Also checks for expiring sessions at the back of the pool, and retires as
76
- required.
77
-
78
- =cut
62
+ # Place a session back into the pool for use. Will check that there is at least
63
+ # one minute remaining in the session, and if so will place the session at the
64
+ # front of the pool.
65
+ #
66
+ # Also checks for expiring sessions at the back of the pool, and retires as
67
+ # required.
79
68
80
69
sub retire_server_session {
81
70
my ( $self , $server_session ) = @_ ;
@@ -94,13 +83,7 @@ sub retire_server_session {
94
83
return ;
95
84
}
96
85
97
- =method end_all_sessions
98
-
99
- $pool->end_all_sessions
100
-
101
- Close all sessions registered with the server. Used during global cleanup.
102
-
103
- =cut
86
+ # Close all sessions registered with the server. Used during global cleanup.
104
87
105
88
sub end_all_sessions {
106
89
my ( $self ) = @_ ;
0 commit comments