Tất cả các bản tải xuống là miễn phí. Tìm kiếm và tải xuống các chức năng đang sử dụng kho lưu trữ Maven chính thức.
- Bắt đầu
- Tìm kiếm lớp học
- Công cụ trực tuyến Maven
- Kho lưu trữ tùy chỉnh
- Máy phát điện POM
- Thông tin
- Danh mục jar
- Thư viện hàng đầu
- Nhật thực
- Câu hỏi thường gặp
- Tải xuống PHP
- Tải xuống JavaScript
- Đối tác: Số dư Ethereum của bạn trực tuyến
- Dự án của tôi
- Nhà
- org.mongodb
- mongodb-driver-core
- 4.1.1
- mã nguồn
- ConnectionPoolCreatedEvent.java
Vui lòng chờ. Điều này có thể mất vài phút ...
Tải xuống dự án
Nhiều tài nguyên là cần thiết để tải xuống một dự án. Xin hãy hiểu rằng chúng tôi phải bồi thường chi phí máy chủ của chúng tôi. Cảm ơn bạn trước. Giá dự án chỉ 1 đô la
Project price only 1 $
Bạn có thể mua dự án này và tải xuống/sửa đổi nó tần suất bạn muốn.
Thông tin
Đi đến tải về
Lớp hoạt động Java cho trình điều khiển Java MongoDB. Các bên thứ ba có thể bọc lớp này để cung cấp API cấp cao hơn tùy chỉnh
/*
* Copyright 2008-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 [the "License"];
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.mongodb.event;
import com.mongodb.connection.ConnectionPoolSettings;
import com.mongodb.connection.ServerId;
import static com.mongodb.assertions.Assertions.notNull;
/**
* An event signifying that a connection pool was created.
*
* @since 4.0
*/
public final class ConnectionPoolCreatedEvent {
private final ServerId serverId;
private final ConnectionPoolSettings settings;
/**
* Constructs a new instance of the event.
*
* @param serverId the server id
* @param settings the connection pool settings
*/
public ConnectionPoolCreatedEvent[final ServerId serverId, final ConnectionPoolSettings settings] {
this.serverId = notNull["serverId", serverId];
this.settings = notNull["settings", settings];
}
/**
* Gets the server id
*
* @return the server id
*/
public ServerId getServerId[] {
return serverId;
}
/**
* Gets the connection pool settings.
*
* @return the connection pool setttings.
*/
public ConnectionPoolSettings getSettings[] {
return settings;
}
@Override
public String toString[] {
return "ConnectionPoolCreatedEvent{"
+ "serverId=" + serverId
+ " settings=" + settings
+ '}';
}
}
- java.lang.Object
- com.mongodb.event.ConnectionPoolCreatedEvent
public final class ConnectionPoolCreatedEvent extends Object
public final class ConnectionPoolCreatedEvent extends Object
3Since:4.04.0
Chi tiết nhà xây dựng
ConstructorsConnectionPoolCreatedEventSự mô tả ConnectionPoolCreatedEvent[ServerId serverId, ConnectionPoolSettings settings]
Xây dựng một thể hiện mới của sự kiện.
Tóm tắt Phương pháp
Tất cả các phương thức & nbsp; Phương thức thể hiện & nbsp; Phương thức cụ thể & nbsp; Instance Methods Concrete MethodsCông cụ sửa đổi và loạiPhương phápSự mô tả ServerId
getServerId[]
Nhận ID máy chủ
ConnectionPoolSettings
public final class ConnectionPoolCreatedEvent extends Object
0Nhận cài đặt nhóm kết nối.
public final class ConnectionPoolCreatedEvent extends Object
1public final class ConnectionPoolCreatedEvent extends Object
2& nbsp; Các phương thức được kế thừa từ lớp & nbsp; java.lang.Object
public final class ConnectionPoolCreatedEvent extends Object
3
Chi tiết nhà xây dựng
ConnectionPoolCreatedEvent
public ConnectionPoolCreatedEvent[ServerId serverId, ConnectionPoolSettings settings]
Xây dựng một thể hiện mới của sự kiện.
Tham số: ________ 14 - Máy chủ IDpublic final class ConnectionPoolCreatedEvent extends Object
5 - Cài đặt nhóm kết nốipublic final class ConnectionPoolCreatedEvent extends Object
4 - the server idpublic final class ConnectionPoolCreatedEvent extends Object
5 - the connection pool settings
Phương pháp chi tiết
GetServerid
public ServerId getServerId[]
Nhận ID máy chủ
ConnectionPoolSettings
the server id
Nhận cài đặt nhóm kết nối.
public ConnectionPoolSettings getSettings[]
Nhận cài đặt nhóm kết nối.
public final class ConnectionPoolCreatedEvent extends Object
1the connection pool setttings.
& nbsp;
Các phương thức được kế thừa từ lớp & nbsp; java.lang.ObjectOverrides:public final class ConnectionPoolCreatedEvent extends Object
6 in classpublic final class ConnectionPoolCreatedEvent extends Object
7