@@ -39,16 +39,11 @@ has _server_session_pool => (
3939 builder => sub { [] },
4040);
4141
42- =method get_server_session
4342
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.
5247
5348sub get_server_session {
5449 my ( $self ) = @_ ;
@@ -64,18 +59,12 @@ sub get_server_session {
6459 return MongoDB::_ServerSession-> new;
6560}
6661
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.
7968
8069sub retire_server_session {
8170 my ( $self , $server_session ) = @_ ;
@@ -94,13 +83,7 @@ sub retire_server_session {
9483 return ;
9584}
9685
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.
10487
10588sub end_all_sessions {
10689 my ( $self ) = @_ ;
0 commit comments