모듈: Mongo::Session::ServerSession::Dirtyable Private
- 다음에 정의됨:
- lib/ Mongo/session/server_session/dirtyable.rb
개요
이 모듈은 비공개 API의 일부입니다. 이 모듈은 향후 제거되거나 변경될 수 있으므로 가능하면 사용하지 않는 것이 좋습니다.
Functionality for manipulating and querying a session’s “dirty” state, per the last paragraph at github.com/mongodb/specifications/blob/master/source/sessions/driver-sessions.md#server-session-pool
If a driver has a server session pool and a network error is
encountered when executing any command with a ClientSession, the
driver MUST mark the associated ServerSession as dirty. Dirty server
sessions are discarded when returned to the server session pool. It is
valid for a dirty session to be used for subsequent commands (e.g. an
implicit retry attempt, a later command in a bulk write, or a later
operation on an explicit session), however, it MUST remain dirty for
the remainder of its lifetime regardless if later commands succeed.
인스턴스 메서드 요약 접기
-
#더티!(mark = true) ⇒ 객체
비공개
서버 세션을 더티( 기본값) 또는 클린으로 표시합니다.
-
#더티? ⇒ true | false
비공개
서버 세션이 더티(dirty)로 표시되었는지 여부를 쿼리합니다.
인스턴스 메서드 세부 정보
#더티!(mark = true) ⇒ 객체
이 메서드는 비공개 API의 일부입니다. 이 방법은 향후 제거되거나 변경될 수 있으므로 가능하면 사용하지 않는 것이 좋습니다.
서버 세션을 더티( 기본값) 또는 클린으로 표시합니다.
46 47 48 |
# 파일 'lib/ Mongo/session/server_session/dirtyable.rb', 줄 46 def dirty!(표시 = true) @dirty = 표시 end |
#더티? ⇒ true | false
이 메서드는 비공개 API의 일부입니다. 이 방법은 향후 제거되거나 변경될 수 있으므로 가능하면 사용하지 않는 것이 좋습니다.
서버 세션이 더티(dirty)로 표시되었는지 여부를 쿼리합니다.
38 39 40 |
# 파일 'lib/ Mongo/session/server_session/dirtyable.rb', 줄 38 def dirty? @dirty end |